//
//  HNMyOrderTableCell.h
//  baidaifu
//
//  Created by 朱传正 on 2016/12/30.
//  Copyright © 2016年 haoniu. All rights reserved.
//

#import <UIKit/UIKit.h>


@class HNMyOrderTableCell;
@protocol HNMyOrderTableCellDelegate <NSObject>

@optional

-(void)HNMyOrderTableCell:(HNMyOrderTableCell *)cell deleteIndexPath:(NSIndexPath *)indexPath;//取消订单
-(void)HNMyOrderTableCell:(HNMyOrderTableCell *)cell payIndexPath:(NSIndexPath *)indexPath;//支付订单
-(void)HNMyOrderTableCell:(HNMyOrderTableCell *)cell pushDeliveryIndexPath:(NSIndexPath *)indexPath;//催促发货
-(void)HNMyOrderTableCell:(HNMyOrderTableCell *)cell contectServiceIndexPath:(NSIndexPath *)indexPath;//联系客服
-(void)HNMyOrderTableCell:(HNMyOrderTableCell *)cell sureIndexPath:(NSIndexPath *)indexPath;//确认发货
-(void)HNMyOrderTableCell:(HNMyOrderTableCell *)cell viewLogisticsIndexPath:(NSIndexPath *)indexPath;//查看物流



@end

@interface HNMyOrderTableCell : UITableViewCell

@property (weak, nonatomic) IBOutlet UILabel *cellTime;

@property (weak, nonatomic) IBOutlet UILabel *cellState;

@property (weak, nonatomic) IBOutlet UILabel *cellOrderNum;

@property (weak, nonatomic) IBOutlet UILabel *cellPrice;

@property (weak, nonatomic) IBOutlet UIImageView *cellImage;

@property (weak, nonatomic) IBOutlet UIImageView *cellImage2;

@property (weak, nonatomic) IBOutlet UIImageView *cellImage3;

@property (weak, nonatomic) IBOutlet UILabel *allAmountLabel;



@property (weak, nonatomic) IBOutlet UILabel *cellDescribe;

@property (weak, nonatomic) IBOutlet UIButton *deletaBtn;

@property (weak, nonatomic) IBOutlet UIButton *payBtn;

@property (weak, nonatomic) IBOutlet UIButton *pushDevileryBtn;

@property (weak, nonatomic) IBOutlet UIButton *contactServiceBtn;

@property (weak, nonatomic) IBOutlet UIButton *sureBtn;

@property (weak, nonatomic) IBOutlet UIButton *viewLogisticsBtn;


@property (weak, nonatomic) IBOutlet UIButton *viewLogisticsBtn2;

@property (nonatomic,assign)NSInteger state;

@property (nonatomic,retain) NSIndexPath * indexPath;

@property (nonatomic,retain) NSDictionary * orderInfo;


@property (nonatomic,strong)id <HNMyOrderTableCellDelegate> MyOrderCellDelegate;

//按钮显示
-(void)setBtnState:(NSInteger)state;




@end
